package com.zx.oa.entity;


/**
 * 学生类
 */
public class Student {
    private int studentId;//学号
    private String studentName;//学生姓名
    private int classId;//班级编号
    private String fromSchool;//来自学校
    private String education;//学历 1 本科 2 大专
    private String loginCode;//登陆账号
    private String password;//登录密码

    private String className;//班级名称
    private String major;//培训专业名称


    public Student() {
    }

    //学生注册


    public Student(int studentId, String studentName, String className, String major) {
        this.studentId = studentId;
        this.studentName = studentName;
        this.className = className;
        this.major = major;
    }
    //学生注册
    public Student(String studentName, int classId, String fromSchool, String education, String loginCode, String password) {
        this.studentName = studentName;
        this.classId = classId;
        this.fromSchool = fromSchool;
        this.education = education;
        this.loginCode = loginCode;
        this.password = password;
    }

    public Student(int studentId, String studentName, int classId, String fromSchool, String education, String loginCode, String password) {
        this.studentId = studentId;
        this.studentName = studentName;
        this.classId = classId;
        this.fromSchool = fromSchool;
        this.education = education;
        this.loginCode = loginCode;
        this.password = password;
    }

    public String getMajor() {
        return major;
    }

    public void setMajor(String major) {
        this.major = major;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public int getStudentId() {
        return studentId;
    }

    public void setStudentId(int studentId) {
        this.studentId = studentId;
    }

    public String getStudentName() {
        return studentName;
    }

    public void setStudentName(String studentName) {
        this.studentName = studentName;
    }

    public int getClassId() {
        return classId;
    }

    public void setClassId(int classId) {
        this.classId = classId;
    }

    public String getFromSchool() {
        return fromSchool;
    }

    public void setFromSchool(String fromSchool) {
        this.fromSchool = fromSchool;
    }

    public String getEducation() {
        return education;
    }

    public void setEducation(String education) {
        this.education = education;
    }

    public String getLoginCode() {
        return loginCode;
    }

    public void setLoginCode(String loginCode) {
        this.loginCode = loginCode;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    @Override
    public String toString() {
        return "Student{" +
                "studentId=" + studentId +
                ", studentName='" + studentName + '\'' +
                ", classId=" + classId +
                ", fromSchool='" + fromSchool + '\'' +
                ", education='" + education + '\'' +
                ", loginCode='" + loginCode + '\'' +
                ", password='" + password + '\'' +
                '}';
    }

}
